<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>预览证书副本</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<style type="text/css">
			.inputNoborder {
			    FONT-SIZE: 16px;
			    FONT-FAMILY: 宋体;
			    BORDER-RIGHT: #FFFFFF 1px solid;
			    BORDER-TOP: #FFFFFF 1px solid;
			    BORDER-LEFT: #FFFFFF 1px solid;
			    BORDER-BOTTOM: #FFFFFF 1px solid;
			}
			.inputNoborder2 {
			    FONT-SIZE: 16px;
			    width:50px;
			    FONT-FAMILY: 宋体;
			     BORDER-RIGHT: #FFFFFF 1px solid;
			    BORDER-TOP: #FFFFFF 1px solid;
			    BORDER-LEFT: #FFFFFF 1px solid;
			    BORDER-BOTTOM: #FFFFFF 1px solid;
			}
			.inputNoborder3 {
			    FONT-SIZE: 16px;
			    width:35px;
			    FONT-FAMILY: 宋体;
			     BORDER-RIGHT: #FFFFFF 1px solid;
			    BORDER-TOP: #FFFFFF 1px solid;
			    BORDER-LEFT: #FFFFFF 1px solid;
			    BORDER-BOTTOM: #FFFFFF 1px solid;
			}
			.inputNoborder4 {
			    FONT-FAMILY: 宋体;
			      FONT-SIZE: 16px;
			     BORDER-RIGHT: #FFFFFF 1px solid;
			    BORDER-TOP: #FFFFFF 1px solid;
			    BORDER-LEFT: #FFFFFF 1px solid;
			    BORDER-BOTTOM: #FFFFFF 1px solid;
			}
			.tableCss{
				background-color:#000000;
				width: 100%;
			}
			.tdCss{
				background-color:#ffffff;
				height: 45px;
			}
			.justifyCss{
				width:90%;
				text-align:justify;
				text-justify:distribute-all-lines;
				text-align-last:justify;
			}
			.wd{
				width:98%;
			}
		
			
		</style>
		<script src="${ctx}/resources/components/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
		<script src="${ctx}/resources/js/ext/adapter/ext/ext-base.js" type="text/javascript"></script>
        <script src="${ctx}/resources/js/ext/ext-all.js" type="text/javascript"></script>
        <script src="${ctx}/resources/js/jquery/jquery.js" type="text/javascript"></script>
        
		<script type="text/javascript">
		function printQyzzfb(){
				var url="${ctx}/csshlj-cz!printFb.action?id="+document.getElementById("id").value;
               
                 window.open(url);
               // YwUtil.openWin({url: url, w: 1000, h: 800});
                
           }
		Ext.onReady(function(){
		  	var hjmc=document.getElementById("hjmc").value;
		   
            if(hjmc.indexOf("dzgz")>=0){//打印设置为不可编辑
              document.getElementById("printzs").style.display='block';
              document.getElementById("savezs").style.display='none';
	          for (var i = 0; i < document.forms[0].elements.length; i++) {
			        var element = document.forms[0].elements[i];
			       	 element.readOnly= true; 
			   }
            }else{
            	  document.getElementById("printzs").style.display='none';
                   document.getElementById("savezs").style.display='block';
            } 
		 });
		 $(document).ready(function(){
		 	$("input:[name='qylx']:radio").each(function(){  
		 	
		     if (this.value ==$("#qylxId").val()){  
				  this.checked=true; 
				}  
			}); 
		 });
		 
		 
		 
		 function  saveQyzzfb(){
		 		var params = $("#czxkzForm").serialize();
					var url="${ctx}/csshlj-cz!saveFb.action";
					$.ajax({
						url : url,
						type : "post",
						dataType : "html",
						data : params,
						success : function(msg) {
							if(msg=="success"){
								alert('保存成功!');
									
							}else{
								alert('保存失败！');
							}
							
						},
						error:function() {
							alert("添加失败！请刷新重试！");
						}
					});
		  }
		</script>
	</head>
	<body>
		<form action="" method="POST" name="czxkzForm" id="czxkzForm">
		<input type="hidden" name="id" value="${id}"/>
		<input type="hidden" name="hjmc" id="hjmc" value="${hjmc}">
		<input type="hidden" name="qylxId" id="qylxId" value="${qylx}">
		<table width="1100" align="center">
			<tr>
				<td width="50%">
				
					<table width="100%" border=0 class="tableCss" cellspacing="1" cellpadding="0">
						<tr height="100px">
							<td style="text-align:center;" class="tdCss" width="150px;"><div class="justifyCss">企业名称</div></td>
							<td style="padding-left:5px;" class="tdCss" colspan="5"><input name="sqdw" value="${sqdw}" readonly="readonly" class="inputNoborder wd"/></td>
						</tr>
						<tr>
							<td style="text-align:center;" class="tdCss"><div class="justifyCss">详细地址</div></td>
							<td style="padding-left:5px;" class="tdCss" colspan="5"><input name="address" value="${address}"  class="inputNoborder wd"/></td>
						</tr>
							<tr>
							<td style="text-align:center;" class="tdCss"><div class="justifyCss">营业执照注册号</div></td>
							<td style="padding-left:5px;" class="tdCss" colspan="5"><input name="yyzch" value="${yyzch}" readonly="readonly" class="inputNoborder wd"/></td>
						</tr>
					
						<tr>
							<td style="text-align:center;" class="tdCss"><div class="justifyCss">企业注册资本</div></td>
							<td style="padding-left:5px;" class="tdCss" colspan="4"><input name="zczb" value="${zczb}" readonly="readonly" class="inputNoborder wd"/>
							</td>
							<td style="text-align:left;" class="tdCss">万元</td>
						</tr>
						
						<tr style="height:40">
							<td style="text-align:center;" class="tdCss"><div class="justifyCss">法定代表人</div></td>
							<td style="padding-left:5px;" class="tdCss" width="100px"><input name="fddbr" value="${fddbr}" readonly="readonly" class="inputNoborder wd"/></td>
							<td style="text-align:center;" class="tdCss" width="50px"><div class="justifyCss">职务</div></td>
							<td style="padding-left:5px;" class="tdCss" width="100px"><input name="fddbrZw" value="${fddbrZw}" class="inputNoborder wd"/></td>
							<td style="text-align:center;" class="tdCss" width="50px"><div class="justifyCss">职称</div></td>
							<td style="padding-left:5px;" class="tdCss" width="100px"><input name="fddbrZc" value="${fddbrZc}" class="inputNoborder wd"/></td>
						</tr>
					
						<tr>
							<td style="text-align:center;" class="tdCss"><div class="justifyCss">企业经理</div></td>
							<td style="padding-left:5px;" class="tdCss" width="100px"><input name="qyManager" value="${qyManager}" class="inputNoborder wd"/></td>
							<td style="text-align:center;" class="tdCss" width="50px"><div class="justifyCss">职务</div></td>
							<td style="padding-left:5px;" class="tdCss" width="100px"><input name="qyManagerZw" value="${qyManagerZw}" class="inputNoborder wd"/></td>
							<td style="text-align:center;" class="tdCss" width="50px"><div class="justifyCss">职称</div></td>
							<td style="padding-left:5px;" class="tdCss" width="100px"><input name="qyManagerZc" value="${qyManagerZc}" class="inputNoborder wd"/></td>
						</tr>
						<tr>
							<td style="text-align:center;" class="tdCss"><div class="justifyCss">企业类型</div></td>
							<td style="padding-left:5px;" class="tdCss" colspan="5">
							<input type="radio" name="qylx" value="1" class=""/>
							内资企业&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							
							<input type="radio"  name="qylx" value="2"  class=""/>
							港、澳、台商投资企业&nbsp;&nbsp;&nbsp;&nbsp;<br>
							
							<input type="radio"  name="qylx" value="3" class=""/>
							外商投资企业&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<input type="radio"  name="qylx" value="4" class=""/>
							合资企业<br>
							
							</td>
						</tr>
						<tr>
							<td style="text-align:center;" class="tdCss"><div class="justifyCss">企业资本构成比例</div></td>
							<td style="padding-left:5px;" class="tdCss" colspan="5">
							
							国有：<input type="text" name="qygyzb" value="${qygyzb}" class="inputNoborder2  "  >
							
							
							个人：<input type="text" name="qygrzb" value="${qygrzb}" class="inputNoborder2  " ><br>
							
							
							外商：<input type="text" name="qywszb" value="${qywszb}" class="inputNoborder2  " >
							
							合资企业：<input type="text" name="qyhzzb" value="${qyhzzb}" class="inputNoborder2  " >
							
							</td>
						</tr>
					    <tr>
							<td style="text-align:center;" class="tdCss"><div class="justifyCss">许可证内容</div></td>
							<td style="padding-left:5px;" class="tdCss" colspan="5"><input name="xkContent" value="${xkContent}" readonly="readonly" class="inputNoborder wd"/></td>
						</tr>
						 <tr>
							<td style="text-align:center;" class="tdCss"><div class="justifyCss">发证机关</div></td>
							<td style="padding-left:5px;" class="tdCss" colspan="5">
							<br>
							&nbsp;&nbsp;
							<input name="fzjg" value="${fzjg}" class="inputNoborder4 "/>监督电话：
							<input name="jdTel" value="${jdTel}" size="13" class="inputNoborder4"/>
							</td>
							
							
						
						</tr>
						 <tr>
							<td style="text-align:center;" class="tdCss"><div class="justifyCss">有效期</div></td>
							<td style="padding-left:5px;" class="tdCss" colspan="5">
							<input name="startYear" value="${startYear}"  readonly="readonly"  class="inputNoborder3"/>
							年
							<input name="startMonth" value="${startMonth}"  readonly="readonly"  class="inputNoborder3"/>
							月
							<input name="startDay" value="${startDay}"  readonly="readonly"  class="inputNoborder3"/>
							日至
							<input name="endYear" value="${endYear}"  readonly="readonly" class="inputNoborder3"/>
							年
							<input name="endMonth" value="${endMonth}"  readonly="readonly"  class="inputNoborder3"/>
							月
							<input name="endDay" value="${endDay}"  readonly="readonly"  class="inputNoborder3"/>
							日
							</td>
						</tr>
						<tr style="height:40">
							<td style="text-align:center;" class="tdCss"><div class="justifyCss">发证日期</div></td>
							<td style="padding-left:5px;" class="tdCss" colspan="2" width="100px">
							<input isHide="true" style="width:130" name="fzrq" value="${fzrq}" disabled="true" onclick="WdatePicker({skin:'ext', dateFmt:'yyyy年MM月dd日'});"  readonly="readonly"  type="text" class="textdocWdate" readonly/>
							
							</td>
							<td style="text-align:center;" class="tdCss" width="80px"><div class="justifyCss">证书编号</div></td>
							<td style="padding-left:5px;" colspan="2" class="tdCss" width="150px">粤建环II&nbsp;&nbsp;<input name="zsbh" value="${zsbh}" readonly="readonly" class="inputNoborder2"/></td>
						</tr>
					</table>
					
				</td>
				<td width="50%">
					<table width="100%" border=0 class="tableCss" cellspacing="1" cellpadding="0">
						<tr>
							<td style="text-align:center;" class="tdCss">
							项目登记
							</td>
						</tr>
						<tr>
							<td class="tdCss" valign="top">
								<div style="margin-left:10px;margin-top:10px;height:90px;">
								项目记录：
									<textarea name="cbgcfw" rows="7" cols="65">${cbgcfw}</textarea>
								</div>
								<div style="text-align:right;">
								审批部门（盖章）
								</div>
								<div style="text-align:right;">
								<input name="" value="${qyxx.zczj}" class="inputNoborder3"/>
								年
								<input name="" value="${qyxx.zczj}" class="inputNoborder3"/>
								月
								<input name="" value="${qyxx.zczj}" class="inputNoborder3"/>
								日
								</div>
								<div style="margin-left:10px;margin-top:10px;height:90px;">
									项目记录：
									<textarea name="cbgcfw" rows="7" cols="65">${cbgcfw}</textarea>
								</div>
								<div style="text-align:right;">
								审批部门（盖章）
								</div>
								<div style="text-align:right;">
								<input name="" value="${qyxx.zczj}" class="inputNoborder3"/>
								年
								<input name="" value="${qyxx.zczj}" class="inputNoborder3"/>
								月
								<input name="" value="${qyxx.zczj}" class="inputNoborder3"/>
								日
								</div>
								<div style="margin-left:10px;margin-top:10px;height:90px;">
									项目记录：
									<textarea name="cbgcfw" rows="5" cols="65">${cbgcfw}</textarea>
								</div>
								
								<div style="text-align:right;">
								审批部门（盖章）
								</div>
								<div style="text-align:right;">
								<input name="" value="${qyxx.zczj}" class="inputNoborder3"/>
								年
								<input name="" value="${qyxx.zczj}" class="inputNoborder3"/>
								月
								<input name="" value="${qyxx.zczj}" class="inputNoborder3"/>
								日
								</div>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		<table width="1100" align="center" style="margin-top:30px;">
			<tr>
				<td align="right" width="50%">
				 <input type="button" id="savezs" onclick="saveQyzzfb();" value="保&nbsp;&nbsp;存" style="width:100px;display:none"/> 
				 <input type="button"  id="printzs" onclick="printQyzzfb();" value="打&nbsp;&nbsp;印" style="width:100px;"/>
				</td>
				<td  width="40%" style="">
				<input type="button" value="关闭窗口" onclick="window.close();" style="width:100px;"/>
				</td>
			</tr>
		</table>
		</form>
		<div id="autoPrintDiv" style="display:none;"><iframe height='1000' width='700' name='autoPrintIFrame'/></div>
	</body>
</html>